package com.repair.service.Rule;

import java.util.List;


import com.repair.dao.Rule.IRuleDao;
import com.repair.domain.Rule;
import com.repair.factory.DaoFactory;


public class RuleService {
	private IRuleDao dao = (IRuleDao)DaoFactory.getInstance().getDao("RuleDao");
	
	
	public void save(Rule obj){
		this.dao.saveRule(obj);
	}
	public  List<Rule> list(){
		return this.dao.getAllRule();
	}
	public void delete(Rule obj){
		this.dao.deleteRule(obj);
	}
}
